package blue.qingyu.whimurmur.messageEx.service;

import java.util.List;

import com.jfinal.plugin.activerecord.Page;

import blue.qingyu.whimurmur.messageEx.model.WMPostClass;
import io.jboot.db.model.Columns;
import io.jboot.service.JbootServiceJoiner;

public interface WMPostClassService extends JbootServiceJoiner {
	/**
     * find model by primary key
     *
     * @param id
     * @return
     */
    public WMPostClass findById(Object id);


    /**
     * find all model
     *
     * @return all <User
     */
    public List<WMPostClass> findAll();


    /**
     * delete model by primary key
     *
     * @param id
     * @return success
     */
    public boolean deleteById(Object id);


    public boolean deleteByIds(Object... ids);

    /**
     * delete model
     *
     * @param model
     * @return
     */
    public boolean delete(WMPostClass model);


    /**
     * save model to database
     *
     * @param model
     * @return
     */
    public Object save(WMPostClass model);


    /**
     * save or update model
     *
     * @param model
     * @return if save or update success
     */
    public Object saveOrUpdate(WMPostClass model);


    /**
     * update data model
     *
     * @param model
     * @return
     */
    public boolean update(WMPostClass model);

    public Page<WMPostClass> _paginate(int page, int pagesize, Columns columns);
    
}
